const files = require.context('.', true, /\.js$/)

const filters = {}
files.keys().forEach(key => {
  if (key === './index.js') return
  for (let k in files(key)) {
    filters[k] = files(key)[k]
  }
})

export default filters
